import Mock from '../mock-class.js'

const permissions = [
	{
		id: 2,
		name: 'add',
		desc: '添加',
		createTime: '2022-04-10 12:25:36'
	},
	{
		id: 3,
		name: 'edit',
		desc: '编辑',
		createTime: '2022-04-10 12:25:36'
	},
	{
		id: 4,
		name: 'delete',
		desc: '删除',
		createTime: '2022-04-10 12:25:36'
	},
	{
		id: 5,
		name: 'detail',
		desc: '详情',
		createTime: '2022-04-10 12:25:36'
	},
]

Mock.mock(Mock.baseURL + '/permission/list', 'get', function (options) {
	// console.log(options)
	return {
		code: 200,
		data: {
			list: permissions,
			total: 5
		},
		message: ''
	}
})